package Client;

import java.io.*;
import java.net.*;
import java.util.*;

import javax.swing.JTextField;

public class Reception implements Runnable {
	
	private BufferedReader in;
	private String message = null;
	private JTextField receiveChamp;
	
	public Reception(BufferedReader in, JTextField receive){
		this.receiveChamp = receive; 
		this.in = in;
		//this.login = login;
	}
	
	public void run() {
		while(true){
			try {
				message = in.readLine();
				//System.out.println("message reçu"+" : "+message);
				receiveChamp.setText("message reçu"+" : "+message);
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	} 

	
	
}// fin de la classe
